package com.xuyiwei.mayi.test;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * Created by xuyiwei on 2019/4/13.
 */
public class ArrayBlockQueueDemo {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<Integer> queue = new ArrayBlockingQueue<Integer>(1);
        System.out.println(queue.add(1));
         queue.put(1);
    }
}
